package com.rt.gptnext.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author gaoyiyang
 */
@Data
@Component
@ConfigurationProperties(prefix = "openai")
public class OpenaiProperties {

    /**
     * 接口地址
     */
    private String url = "https://api.openai.com";

    /**
     * 思维发散程度0.0~2.0
     */
    private double temperature = 1.0;

    private List<String> key = new ArrayList<>();

}
